replicas-engine 0.1.1485 → 0.1.1487
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/{asp-host-KWA3JTHY.js → asp-host-QSWMLCCT.js} +5 -5
- package/dist/src/{chunk-IL5H3ARK.js → chunk-FRGVWKYR.js} +2 -2
- package/dist/src/{chunk-JXHWGTUR.js → chunk-GAT4P26F.js} +3 -3
- package/dist/src/{chunk-VEJ25S6F.js → chunk-IJJQPXPJ.js} +1 -1
- package/dist/src/{chunk-H4EAIFP5.js → chunk-OFVUB7GI.js} +2 -2
- package/dist/src/{chunk-AV6SAXMO.js → chunk-PLJMIBJJ.js} +6 -6
- package/dist/src/{chunk-WQHZJA2S.js → chunk-W3VANMAT.js} +1 -1
- package/dist/src/{chunk-K2FAYKHI.js → chunk-WEC7UDO5.js} +109 -33
- package/dist/src/{chunk-GPKTNFK6.js → chunk-XYXD4AM2.js} +2 -2
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +4 -4
- package/dist/src/index.js +8 -8
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
listCodexModelsForDetails,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-PLJMIBJJ.js";
|
|
12
|
+
import "./chunk-XYXD4AM2.js";
|
|
13
|
+
import "./chunk-GAT4P26F.js";
|
|
14
|
+
import "./chunk-W3VANMAT.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-WEC7UDO5.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getOriginDefaultBranch,
|
|
7
7
|
monolithRequest,
|
|
8
8
|
runGitCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XYXD4AM2.js";
|
|
10
10
|
import {
|
|
11
11
|
extractCommandProtectionCommandText,
|
|
12
12
|
findCommandProtectionGitLookups,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
findScoutRepoWriteSignals,
|
|
16
16
|
parseCommandProtectionRequest,
|
|
17
17
|
withE2BRetry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WEC7UDO5.js";
|
|
19
19
|
|
|
20
20
|
// src/services/command-protection-service.ts
|
|
21
21
|
import { readFile, stat } from "fs/promises";
|
|
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
execFileAsync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W3VANMAT.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WEC7UDO5.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/codex-agent-env.ts
|
|
12
12
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
|
|
|
240
240
|
if (method === "foundry") return "azure";
|
|
241
241
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
242
242
|
}
|
|
243
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
243
|
+
var ENGINE_PACKAGE_VERSION = "0.1.1487";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
AspClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GAT4P26F.js";
|
|
7
7
|
import {
|
|
8
8
|
ASTER_BASE_URL,
|
|
9
9
|
ASTER_PROVIDER,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isRecord,
|
|
16
16
|
readOllamaAuthEnv,
|
|
17
17
|
readOpenAICompatibleAuthEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WEC7UDO5.js";
|
|
19
19
|
|
|
20
20
|
// src/managers/codex-asp/notification-dispatch.ts
|
|
21
21
|
var TURN_STARTED_METHOD = "turn/started";
|
|
@@ -11,15 +11,15 @@ import {
|
|
|
11
11
|
resolveDiffBase,
|
|
12
12
|
runGitCommand,
|
|
13
13
|
setAgentCredentialSnapshot
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XYXD4AM2.js";
|
|
15
15
|
import {
|
|
16
16
|
AppServerProcess,
|
|
17
17
|
buildCodexAgentEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GAT4P26F.js";
|
|
19
19
|
import {
|
|
20
20
|
SUBPROCESS_MAX_BUFFER,
|
|
21
21
|
execFileAsync
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-W3VANMAT.js";
|
|
23
23
|
import {
|
|
24
24
|
isRecord
|
|
25
25
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
resolveOpenAICompatibleModelsUrl,
|
|
58
58
|
splitMothershipInstructions,
|
|
59
59
|
withTimeout
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-WEC7UDO5.js";
|
|
61
61
|
|
|
62
62
|
// src/managers/codex-token-manager.ts
|
|
63
63
|
import { promises as fs } from "fs";
|
|
@@ -320,7 +320,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
320
320
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
321
321
|
await this.applyCredentialsResponse(data);
|
|
322
322
|
setAgentCredentialSnapshot("codex", data);
|
|
323
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
323
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-QSWMLCCT.js");
|
|
324
324
|
await restartCodexAspHostIfRunning2();
|
|
325
325
|
});
|
|
326
326
|
await this.start(true);
|
|
@@ -342,7 +342,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
342
342
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
343
343
|
await this.applyCredentialsResponse(data);
|
|
344
344
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
345
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
345
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-QSWMLCCT.js");
|
|
346
346
|
await restartCodexAspHostIfRunning2();
|
|
347
347
|
}
|
|
348
348
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
HOOK_EXEC_MAX_BUFFER_BYTES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WEC7UDO5.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -13472,8 +13472,83 @@ var LINEAR_ABILITY = {
|
|
|
13472
13472
|
referenceFile: { name: "LINEAR.md", content: REFERENCE7 }
|
|
13473
13473
|
};
|
|
13474
13474
|
|
|
13475
|
+
// ../shared/src/default-skills/replicas-agent/abilities/local-computer.ts
|
|
13476
|
+
var SECTION8 = `### The user's computer
|
|
13477
|
+
Run commands on the user's own Mac or Linux computer over \`ssh <name>\`, such as an Xcode build, a simulator, or a tool that only exists there. Your instructions name the computers this workspace can reach, either through the desktop app's local control or as devices.
|
|
13478
|
+
|
|
13479
|
+
**Reference:** \`references/LOCAL-COMPUTER.md\`
|
|
13480
|
+
|
|
13481
|
+
Use this when:
|
|
13482
|
+
- A task needs macOS, Xcode, the iOS Simulator, or hardware, files, or accounts that only the user's computer has
|
|
13483
|
+
- The user asks you to run something "on my computer", "locally", or "on my Mac"`;
|
|
13484
|
+
var REFERENCE8 = `# The user's computer
|
|
13485
|
+
|
|
13486
|
+
Your instructions list the computers you can reach and how: \`ssh <name>\`, \`scp\` and \`rsync\` work as usual. If none are listed, the user hasn't set any up: point them to **Local control** under Dashboard \u2192 Personal \u2192 Preferences \u2192 Experimental, with the Replicas desktop app open on that computer.
|
|
13487
|
+
|
|
13488
|
+
It is a personal machine with the user's files, accounts and running apps. Change only what the task needs, keep your files in one folder, and ask before anything destructive, slow to undo, or visible on their screen (opening apps, booting a simulator window, changing settings).
|
|
13489
|
+
|
|
13490
|
+
## Running commands
|
|
13491
|
+
|
|
13492
|
+
Other workspaces can reach the same computer at the same time, so keep everything you create (code, build output, logs, screenshots) under \`~/replicas/<ws>\`, where \`<ws>\` is this workspace's \`$REPLICAS_WORKSPACE_ID\`. The examples below use that folder.
|
|
13493
|
+
|
|
13494
|
+
|
|
13495
|
+
- Quote the remote command in single quotes so the workspace shell doesn't expand it: \`ssh mac 'cd ~/replicas/<ws>/app && make'\`. For multi-line scripts, pipe a heredoc into \`bash -s\`, since the login shell is often zsh:
|
|
13496
|
+
\`\`\`bash
|
|
13497
|
+
ssh mac 'bash -s' <<'EOF'
|
|
13498
|
+
set -euo pipefail
|
|
13499
|
+
cd ~/replicas/<ws>/app
|
|
13500
|
+
xcodebuild -version
|
|
13501
|
+
EOF
|
|
13502
|
+
\`\`\`
|
|
13503
|
+
- Commands run as the user in their home directory, with their login shell's \`PATH\` (Homebrew included) and no terminal. Anything that prompts hangs or fails: \`sudo\` needs a password, so use \`sudo -n\` and ask the user to run the command themselves if it refuses. Check a tool exists (\`command -v xcbeautify\`) before relying on it, and ask before installing one.
|
|
13504
|
+
- Each new connection takes a few seconds. Batch related commands into one \`ssh\` call, or share one connection across calls:
|
|
13505
|
+
\`\`\`bash
|
|
13506
|
+
ssh -o ControlMaster=auto -o ControlPath=/tmp/ssh-%C -o ControlPersist=10m mac true
|
|
13507
|
+
ssh -o ControlPath=/tmp/ssh-%C mac 'xcrun simctl list devices booted'
|
|
13508
|
+
\`\`\`
|
|
13509
|
+
- A command stops when its connection drops. For a build or job that runs longer than your tool's timeout, start it detached with a log, then poll the log:
|
|
13510
|
+
\`\`\`bash
|
|
13511
|
+
ssh mac 'cd ~/replicas/<ws>/app && nohup xcodebuild build -scheme App > ~/replicas/<ws>/build.log 2>&1 & echo $!'
|
|
13512
|
+
ssh mac 'tail -n 20 ~/replicas/<ws>/build.log; kill -0 <pid> 2>/dev/null && echo running'
|
|
13513
|
+
\`\`\`
|
|
13514
|
+
A plain \`&\` without \`nohup\` dies with the connection.
|
|
13515
|
+
- Through the desktop app, \`ssh -L\` and \`ssh -R\` port forwarding are refused. To reach a service running there, run the client there too (\`ssh mac 'curl -s localhost:3000/health'\`).
|
|
13516
|
+
|
|
13517
|
+
## Moving code and files
|
|
13518
|
+
|
|
13519
|
+
The user's computer doesn't have this workspace's checkout. Sync it into a folder of your own, never over the user's own clones unless they ask:
|
|
13520
|
+
|
|
13521
|
+
\`\`\`bash
|
|
13522
|
+
rsync -az --delete --exclude node_modules --exclude .build --exclude DerivedData ./ mac:replicas/<ws>/<repo>/
|
|
13523
|
+
\`\`\`
|
|
13524
|
+
|
|
13525
|
+
Run the build there, then copy back what you need (logs, \`.xcresult\` bundles, screenshots) with \`scp\` or \`rsync\`. Edit code in the workspace and sync again, so the change stays in the workspace's git checkout.
|
|
13526
|
+
|
|
13527
|
+
## Xcode and the iOS Simulator (macOS)
|
|
13528
|
+
|
|
13529
|
+
\`\`\`bash
|
|
13530
|
+
ssh mac 'xcodebuild -version; xcrun simctl list runtimes; xcrun simctl list devices available'
|
|
13531
|
+
\`\`\`
|
|
13532
|
+
|
|
13533
|
+
- No runtime listed means no simulators: ask before running \`xcodebuild -downloadPlatform iOS\` (several GB).
|
|
13534
|
+
- Build with \`-quiet\` and your own \`-derivedDataPath ~/replicas/<ws>/DerivedData\`, so the output stays readable and the user's own builds aren't touched. Pipe through \`xcbeautify\` only if it's installed.
|
|
13535
|
+
- \`xcrun simctl boot <udid>\` runs a simulator without opening its window. Install and launch with \`xcrun simctl install booted <App.app>\` and \`xcrun simctl launch booted <bundle id>\`, then screenshot with \`xcrun simctl io booted screenshot ~/replicas/<ws>/sim.png\` and copy it back to share it with \`replicas media upload\`. Shut down simulators you booted when you're done.
|
|
13536
|
+
|
|
13537
|
+
## When it fails
|
|
13538
|
+
|
|
13539
|
+
- \`ssh\` closes straight away, such as "Connection closed by UNKNOWN port 65535": for a desktop app computer, the app isn't running there or local control is off. Ask the user to open the app.
|
|
13540
|
+
- "Operation not permitted" on the user's files: macOS is blocking the app. Ask the user to allow Replicas under System Settings \u2192 Privacy & Security \u2192 Full Disk Access.
|
|
13541
|
+
`;
|
|
13542
|
+
var LOCAL_COMPUTER_ABILITY = {
|
|
13543
|
+
label: "User's computer",
|
|
13544
|
+
description: "Run commands, builds and simulators on the user's own Mac or Linux computer over `ssh`.",
|
|
13545
|
+
bullet: "- Running commands on the user's own computer (`ssh <name>`), such as a local Xcode build or the iOS Simulator",
|
|
13546
|
+
section: SECTION8,
|
|
13547
|
+
referenceFile: { name: "LOCAL-COMPUTER.md", content: REFERENCE8 }
|
|
13548
|
+
};
|
|
13549
|
+
|
|
13475
13550
|
// ../shared/src/default-skills/replicas-agent/abilities/media.ts
|
|
13476
|
-
var
|
|
13551
|
+
var SECTION9 = `### Media
|
|
13477
13552
|
Deliver screenshots, GIFs, screen recordings, generated diagrams, and audio clips to the Replicas dashboard and, when applicable, inline in the destination workflow.
|
|
13478
13553
|
|
|
13479
13554
|
**Reference:** \`references/MEDIA.md\`
|
|
@@ -13484,7 +13559,7 @@ Use this when:
|
|
|
13484
13559
|
- You need to show motion or an interaction (an animation, a popup that moves, a flow) in a PR or message: make a short looping GIF with \`replicas media gif\`, never a grid of frames
|
|
13485
13560
|
- You record video output (browser automation, screen capture) \u2014 including the recommended aspect ratio and FPS
|
|
13486
13561
|
- You need to embed media in a Slack/Linear/GitHub/GitLab message AND keep a referenceable copy in the Replicas dashboard`;
|
|
13487
|
-
var
|
|
13562
|
+
var REFERENCE9 = `# Media (Screenshots, GIFs, Recordings, Audio)
|
|
13488
13563
|
|
|
13489
13564
|
This is the single source of truth for delivering screenshots, GIFs, screen recordings, generated diagrams, and audio clips through Replicas and external surfaces (Slack, Linear, GitHub, GitLab). HTML pages are visuals: publish them with \`replicas visualize\` (see \`replicas visualize --help\`), not \`media upload\`.
|
|
13490
13565
|
|
|
@@ -13856,12 +13931,12 @@ var MEDIA_ABILITY = {
|
|
|
13856
13931
|
label: "Media",
|
|
13857
13932
|
description: "Deliver media to Replicas and destination workflows with inline uploads.",
|
|
13858
13933
|
bullet: "- Producing or showing the user any media \u2014 screenshots, screen recordings, generated images or diagrams, or audio clips \u2014 including in your Replicas chat reply, PR descriptions/comments, and other external platforms. Paste the printed `` embeds in your chat reply, never only dashboard links, and upload the file itself to Slack, Linear, or GitLab. To show motion, turn the recording into a short GIF with `replicas media gif` instead of a grid of frames",
|
|
13859
|
-
section:
|
|
13860
|
-
referenceFile: { name: "MEDIA.md", content:
|
|
13934
|
+
section: SECTION9,
|
|
13935
|
+
referenceFile: { name: "MEDIA.md", content: REFERENCE9 }
|
|
13861
13936
|
};
|
|
13862
13937
|
|
|
13863
13938
|
// ../shared/src/default-skills/replicas-agent/abilities/previews.ts
|
|
13864
|
-
var
|
|
13939
|
+
var SECTION10 = `### Previews
|
|
13865
13940
|
Expose locally running services (web apps, APIs, databases) as public preview URLs so humans can interact with them directly.
|
|
13866
13941
|
|
|
13867
13942
|
**Reference:** \`references/PREVIEWS.md\`
|
|
@@ -13871,7 +13946,7 @@ Use this when:
|
|
|
13871
13946
|
- The task involves UI work that benefits from human review
|
|
13872
13947
|
- You are verifying frontend/backend integrations visually
|
|
13873
13948
|
- You need a URL for OAuth redirects, GitHub App callbacks, or webhooks (never the sandbox's \`*.e2b.app\` address)`;
|
|
13874
|
-
var
|
|
13949
|
+
var REFERENCE10 = `# Preview URLs
|
|
13875
13950
|
|
|
13876
13951
|
When you run services on ports \u2014 such as a web app, API server, or database \u2014 humans may want to interact with them directly. You can expose your locally running services as public preview URLs.
|
|
13877
13952
|
|
|
@@ -13960,12 +14035,12 @@ var PREVIEWS_ABILITY = {
|
|
|
13960
14035
|
label: "Previews",
|
|
13961
14036
|
description: "Expose locally running services on public preview URLs for humans.",
|
|
13962
14037
|
bullet: "- Creating preview URLs for locally running services, including OAuth redirect, app callback, and webhook URLs (never a raw `*.e2b.app` address)",
|
|
13963
|
-
section:
|
|
13964
|
-
referenceFile: { name: "PREVIEWS.md", content:
|
|
14038
|
+
section: SECTION10,
|
|
14039
|
+
referenceFile: { name: "PREVIEWS.md", content: REFERENCE10 }
|
|
13965
14040
|
};
|
|
13966
14041
|
|
|
13967
14042
|
// ../shared/src/default-skills/replicas-agent/abilities/plugins.ts
|
|
13968
|
-
var
|
|
14043
|
+
var SECTION11 = `### Plugins
|
|
13969
14044
|
Discover and execute installed marketplace tools through the workspace-scoped TypeScript SDK.
|
|
13970
14045
|
|
|
13971
14046
|
**Reference:** \`references/PLUGINS.md\`
|
|
@@ -13984,7 +14059,7 @@ Use this when:
|
|
|
13984
14059
|
- The user asks to read, triage, label, or draft replies to LinkedIn messages through Kondo
|
|
13985
14060
|
- The user asks to query Sazabi logs, investigate Sazabi issues, or ask the Sazabi agent about production
|
|
13986
14061
|
- The user asks to analyze text with Pangram`;
|
|
13987
|
-
var
|
|
14062
|
+
var REFERENCE11 = `# Plugins
|
|
13988
14063
|
|
|
13989
14064
|
Plugins are TypeScript libraries, not MCP servers. Import \`@replicas/sdk\`; Replicas authenticates the workspace and uses the connection from the most specific environment in the workspace's fork chain. Provider credentials, sessions, and project keys are never exposed.
|
|
13990
14065
|
|
|
@@ -14190,12 +14265,12 @@ var PLUGINS_ABILITY = {
|
|
|
14190
14265
|
label: "Plugins",
|
|
14191
14266
|
description: "Use installed marketplace tools through @replicas/sdk.",
|
|
14192
14267
|
bullet: "- Interacting with installed marketplace plugins through TypeScript",
|
|
14193
|
-
section:
|
|
14194
|
-
referenceFile: { name: "PLUGINS.md", content:
|
|
14268
|
+
section: SECTION11,
|
|
14269
|
+
referenceFile: { name: "PLUGINS.md", content: REFERENCE11 }
|
|
14195
14270
|
};
|
|
14196
14271
|
|
|
14197
14272
|
// ../shared/src/default-skills/replicas-agent/abilities/replicas.ts
|
|
14198
|
-
var
|
|
14273
|
+
var SECTION12 = `### Replicas (in-workspace CLI)
|
|
14199
14274
|
Take action *with* Replicas itself \u2014 manage automations, environments (variables, files), repos, and \`replicas.json\` config \u2014 using the pre-installed, pre-authenticated \`replicas\` CLI.
|
|
14200
14275
|
|
|
14201
14276
|
**Reference:** \`references/REPLICAS.md\`
|
|
@@ -14207,7 +14282,7 @@ Use this when:
|
|
|
14207
14282
|
- The user asks "what envs / repos / automations do I have?"
|
|
14208
14283
|
- The user asks you to scaffold a \`replicas.json\` / \`replicas.yaml\` in a repo
|
|
14209
14284
|
- You need to run a long-lived service (dev server, daemon) \u2014 always use \`replicas service start\` so it survives workspace sleep/wake`;
|
|
14210
|
-
var
|
|
14285
|
+
var REFERENCE12 = `# Replicas (in-workspace CLI)
|
|
14211
14286
|
|
|
14212
14287
|
This guide covers how to take action *with* Replicas itself from inside a Replicas workspace \u2014 managing automations, environments (and their variables/files), repos, previews, and the user's \`replicas.json\` config \u2014 using the pre-installed \`replicas\` CLI.
|
|
14213
14288
|
|
|
@@ -14487,13 +14562,13 @@ var REPLICAS_ABILITY = {
|
|
|
14487
14562
|
label: "Replicas",
|
|
14488
14563
|
description: "Teach the agent about Replicas itself \u2014 automations, environments, the in-workspace CLI.",
|
|
14489
14564
|
bullet: "- Getting a secret, API key, or token you don't have from the user: run `replicas environment vars request <KEY>...`, which shows them a form. Never ask for the value in chat or tell them to add it in settings.",
|
|
14490
|
-
section:
|
|
14491
|
-
referenceFile: { name: "REPLICAS.md", content:
|
|
14565
|
+
section: SECTION12,
|
|
14566
|
+
referenceFile: { name: "REPLICAS.md", content: REFERENCE12 },
|
|
14492
14567
|
locked: true
|
|
14493
14568
|
};
|
|
14494
14569
|
|
|
14495
14570
|
// ../shared/src/default-skills/replicas-agent/abilities/sentry.ts
|
|
14496
|
-
var
|
|
14571
|
+
var SECTION13 = `### Sentry
|
|
14497
14572
|
Read issues and project data through the workspace-scoped TypeScript SDK.
|
|
14498
14573
|
|
|
14499
14574
|
**Reference:** \`references/SENTRY.md\`
|
|
@@ -14502,7 +14577,7 @@ Use this when:
|
|
|
14502
14577
|
- A user shares a Sentry link (sentry.io or a self-hosted Sentry server)
|
|
14503
14578
|
- You need to inspect Sentry projects or issues
|
|
14504
14579
|
- A user asks for error-monitoring context outside a webhook-triggered task`;
|
|
14505
|
-
var
|
|
14580
|
+
var REFERENCE13 = `# Sentry Integration
|
|
14506
14581
|
|
|
14507
14582
|
Use \`@replicas/sdk\`; never request or read a Sentry token. Sentry access is organization-scoped and read-only.
|
|
14508
14583
|
|
|
@@ -14533,8 +14608,8 @@ var SENTRY_ABILITY = {
|
|
|
14533
14608
|
label: "Sentry",
|
|
14534
14609
|
description: "Read Sentry projects and issues through @replicas/sdk.",
|
|
14535
14610
|
bullet: "- Interacting with Sentry (reading projects, issues, and error context, including any Sentry issue link the user shares): use replicas.sentry.request from @replicas/sdk. Read references/SENTRY.md to turn an issue link into API paths.",
|
|
14536
|
-
section:
|
|
14537
|
-
referenceFile: { name: "SENTRY.md", content:
|
|
14611
|
+
section: SECTION13,
|
|
14612
|
+
referenceFile: { name: "SENTRY.md", content: REFERENCE13 }
|
|
14538
14613
|
};
|
|
14539
14614
|
|
|
14540
14615
|
// ../shared/src/memory.ts
|
|
@@ -14542,11 +14617,11 @@ var HISTORY_ROOT = `${SANDBOX_PATHS.REPLICAS_DIR}/history`;
|
|
|
14542
14617
|
var HISTORY_INDEX_FILENAME = "INDEX.md";
|
|
14543
14618
|
|
|
14544
14619
|
// ../shared/src/default-skills/replicas-agent/abilities/session-history.ts
|
|
14545
|
-
var
|
|
14620
|
+
var SECTION14 = `### Session history
|
|
14546
14621
|
Search past agent sessions in this organization when the user refers to prior work, a date, a teammate's session, or "last time".
|
|
14547
14622
|
|
|
14548
14623
|
**Reference:** \`references/SESSION-HISTORY.md\``;
|
|
14549
|
-
var
|
|
14624
|
+
var REFERENCE14 = `# Session history
|
|
14550
14625
|
|
|
14551
14626
|
Past sessions are installed under \`${HISTORY_ROOT}\`:
|
|
14552
14627
|
|
|
@@ -14575,8 +14650,8 @@ var SESSION_HISTORY_ABILITY = {
|
|
|
14575
14650
|
label: "Session history",
|
|
14576
14651
|
description: "Search past agent sessions in this organization.",
|
|
14577
14652
|
bullet: "",
|
|
14578
|
-
section:
|
|
14579
|
-
referenceFile: { name: "SESSION-HISTORY.md", content:
|
|
14653
|
+
section: SECTION14,
|
|
14654
|
+
referenceFile: { name: "SESSION-HISTORY.md", content: REFERENCE14 },
|
|
14580
14655
|
locked: true
|
|
14581
14656
|
};
|
|
14582
14657
|
|
|
@@ -14587,7 +14662,7 @@ var SLACK_BLOCK_KIT_GUIDANCE = "Use Block Kit whenever structure or a link would
|
|
|
14587
14662
|
var SLACK_PR_BUTTON_GUIDANCE = 'The first time you share a given pull request or merge request link in a thread (the message announcing you opened it), attach a button for it: send `blocks` alongside `text`, with a `section` block holding your message as `mrkdwn`, then an `actions` block with one element per newly shared link, `{"type": "button", "style": "primary", "text": {"type": "plain_text", "text": "View PR"}, "url": "<pr url>", "action_id": "view_pr"}`. The button replaces the link, so never put the raw URL in the section text. Later messages about a pull request you already linked in this thread get no button and refer to it with a short labeled link like `<pr url|#944>`, never a raw URL, and never re-post a button for a link someone already has. Label it "View MR" for GitLab, and if there are several give each button a unique `action_id` and name its repository in the label ("View PR \xB7 web"). Always keep `text` populated with the same message plus the link, since Slack uses it for notifications and fallback.';
|
|
14588
14663
|
|
|
14589
14664
|
// ../shared/src/default-skills/replicas-agent/abilities/slack.ts
|
|
14590
|
-
var
|
|
14665
|
+
var SECTION15 = `### Slack
|
|
14591
14666
|
Send messages, read threads, search conversations, and transfer files through the workspace-scoped TypeScript SDK.
|
|
14592
14667
|
|
|
14593
14668
|
**Reference:** \`references/SLACK.md\`
|
|
@@ -14597,7 +14672,7 @@ Use this when:
|
|
|
14597
14672
|
- You need to read or search Slack conversations
|
|
14598
14673
|
- You need to download a file attached to a Slack message
|
|
14599
14674
|
- You encounter a Slack message link and need its full thread`;
|
|
14600
|
-
var
|
|
14675
|
+
var REFERENCE15 = `# Slack Integration
|
|
14601
14676
|
|
|
14602
14677
|
Use \`@replicas/sdk\`; never read or send a Slack token directly. The SDK calls Replicas, which selects only this workspace's organization connection.
|
|
14603
14678
|
|
|
@@ -14676,8 +14751,8 @@ var SLACK_ABILITY = {
|
|
|
14676
14751
|
label: "Slack",
|
|
14677
14752
|
description: "Send messages, read threads, search, and transfer files through @replicas/sdk.",
|
|
14678
14753
|
bullet: "- Interacting with Slack (listing channels, sending messages, reading threads, or searching): use replicas.slack.call from @replicas/sdk. Read references/SLACK.md; no Slack MCP server or provider token in the VM is required.",
|
|
14679
|
-
section:
|
|
14680
|
-
referenceFile: { name: "SLACK.md", content:
|
|
14754
|
+
section: SECTION15,
|
|
14755
|
+
referenceFile: { name: "SLACK.md", content: REFERENCE15 }
|
|
14681
14756
|
};
|
|
14682
14757
|
|
|
14683
14758
|
// ../shared/src/visuals.ts
|
|
@@ -14775,7 +14850,7 @@ var BOOTSTRAP_SCRIPT = `
|
|
|
14775
14850
|
`.trim().replace(/\s*\n\s*/g, " ");
|
|
14776
14851
|
|
|
14777
14852
|
// ../shared/src/default-skills/replicas-agent/abilities/visuals.ts
|
|
14778
|
-
var
|
|
14853
|
+
var SECTION16 = `### Visuals
|
|
14779
14854
|
Show a chart, diagram, comparison, timeline, or mockup inline in your Replicas chat reply, in the chat's own font and colors.
|
|
14780
14855
|
|
|
14781
14856
|
**Reference:** \`references/VISUALS.md\`
|
|
@@ -14783,7 +14858,7 @@ Show a chart, diagram, comparison, timeline, or mockup inline in your Replicas c
|
|
|
14783
14858
|
Use this when:
|
|
14784
14859
|
- Seeing it would explain faster than reading it: numbers over time, a flow or architecture, a before and after, options side by side
|
|
14785
14860
|
- The user asks to see, chart, plot, compare, or visualize something`;
|
|
14786
|
-
var
|
|
14861
|
+
var REFERENCE16 = `# Visuals
|
|
14787
14862
|
|
|
14788
14863
|
A visual is a self-contained HTML page shown inline in your Replicas chat reply. It sits on the chat background in the chat's font and colors, grows to fit its content, and follows the user's light or dark theme live.
|
|
14789
14864
|
|
|
@@ -14821,8 +14896,8 @@ var VISUALS_ABILITY = {
|
|
|
14821
14896
|
description: "Show charts, diagrams, comparisons, and mockups inline in chat replies.",
|
|
14822
14897
|
// The visuals_instructions system prompt block is its trigger.
|
|
14823
14898
|
bullet: "",
|
|
14824
|
-
section:
|
|
14825
|
-
referenceFile: { name: "VISUALS.md", content:
|
|
14899
|
+
section: SECTION16,
|
|
14900
|
+
referenceFile: { name: "VISUALS.md", content: REFERENCE16 }
|
|
14826
14901
|
};
|
|
14827
14902
|
|
|
14828
14903
|
// ../shared/src/default-skills/replicas-agent/registry.ts
|
|
@@ -14836,6 +14911,7 @@ var REPLICAS_AGENT_ABILITY_REGISTRY = {
|
|
|
14836
14911
|
gitlab: GITLAB_ABILITY,
|
|
14837
14912
|
gpu: GPU_ABILITY,
|
|
14838
14913
|
linear: LINEAR_ABILITY,
|
|
14914
|
+
local_computer: LOCAL_COMPUTER_ABILITY,
|
|
14839
14915
|
media: MEDIA_ABILITY,
|
|
14840
14916
|
plugins: PLUGINS_ABILITY,
|
|
14841
14917
|
previews: PREVIEWS_ABILITY,
|
|
@@ -19539,7 +19615,7 @@ var VOICE_WAVEFORM = {
|
|
|
19539
19615
|
};
|
|
19540
19616
|
|
|
19541
19617
|
// ../shared/src/e2b.ts
|
|
19542
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-11-
|
|
19618
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-11-v7";
|
|
19543
19619
|
|
|
19544
19620
|
// ../shared/src/e2b-retry.ts
|
|
19545
19621
|
var DEFAULT_BACKOFFS_MS = [2e3, 5e3];
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
SUBPROCESS_MAX_BUFFER,
|
|
6
6
|
execFileAsync
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W3VANMAT.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord as isRecord2
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
provisionedDeviceSchema,
|
|
22
22
|
readReplicasRuntimeEnv,
|
|
23
23
|
serializePosixEnvFile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WEC7UDO5.js";
|
|
25
25
|
|
|
26
26
|
// src/runtime-env-loader.ts
|
|
27
27
|
import { readFileSync } from "fs";
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
evaluateCommandProtection
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-FRGVWKYR.js";
|
|
7
|
+
import "./chunk-XYXD4AM2.js";
|
|
8
|
+
import "./chunk-W3VANMAT.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-WEC7UDO5.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
recoverCompletedTurn,
|
|
15
15
|
spawnMuseMsp,
|
|
16
16
|
startMuseSession
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OFVUB7GI.js";
|
|
18
18
|
import {
|
|
19
19
|
AppServerProcess,
|
|
20
20
|
buildCodexAgentEnv
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-GAT4P26F.js";
|
|
22
|
+
import "./chunk-W3VANMAT.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT,
|
|
25
25
|
OPENCODE_GO_PROVIDER,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
headlessAgentUsagePath,
|
|
30
30
|
isRecord,
|
|
31
31
|
withTimeout
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-WEC7UDO5.js";
|
|
33
33
|
import "./chunk-VEQXQN22.js";
|
|
34
34
|
|
|
35
35
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
evaluateCommandProtection,
|
|
28
28
|
extractToolCommand,
|
|
29
29
|
reportCommandProtectionBlock
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FRGVWKYR.js";
|
|
31
31
|
import {
|
|
32
32
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
33
33
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
spawnMuseMsp,
|
|
66
66
|
startMuseSession,
|
|
67
67
|
uuidV7
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-OFVUB7GI.js";
|
|
69
69
|
import {
|
|
70
70
|
publishedPullRequestUrls
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-IJJQPXPJ.js";
|
|
72
72
|
import {
|
|
73
73
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
74
74
|
AsyncLock,
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
timestampFromSeconds,
|
|
144
144
|
upsertCredentialFileLines,
|
|
145
145
|
writeSecureCredentialFile
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-PLJMIBJJ.js";
|
|
147
147
|
import {
|
|
148
148
|
ENGINE_ENV,
|
|
149
149
|
UNQUOTED_PATHS_CONFIG,
|
|
@@ -154,15 +154,15 @@ import {
|
|
|
154
154
|
resolveDiffBase,
|
|
155
155
|
setAgentCredentialSnapshot,
|
|
156
156
|
setLinearSessionId
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-XYXD4AM2.js";
|
|
158
158
|
import {
|
|
159
159
|
getCodexModelProvider
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-GAT4P26F.js";
|
|
161
161
|
import {
|
|
162
162
|
SUBPROCESS_MAX_BUFFER,
|
|
163
163
|
execAsync,
|
|
164
164
|
execFileAsync
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-W3VANMAT.js";
|
|
166
166
|
import {
|
|
167
167
|
isRecord as isRecord2
|
|
168
168
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -443,7 +443,7 @@ import {
|
|
|
443
443
|
workspaceTokenRequestSchema,
|
|
444
444
|
workspaceTokenResponseSchema,
|
|
445
445
|
wrapInTag
|
|
446
|
-
} from "./chunk-
|
|
446
|
+
} from "./chunk-WEC7UDO5.js";
|
|
447
447
|
import {
|
|
448
448
|
cloneMcpConfig,
|
|
449
449
|
ensureCompatibilityImports,
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
publishedPullRequestUrls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IJJQPXPJ.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
10
|
import {
|
|
11
11
|
shouldRefreshPullRequests
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WEC7UDO5.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
package/dist/src/subagent-mcp.js
CHANGED